<!--
 * @Author: your name
 * @Date: 2021-08-14 17:32:43
 * @LastEditTime: 2021-08-16 16:55:14
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \系统学习\VueProject\vue02\supermall\src\components\content\backTop\BackTop.vue
-->
<template>
    <div class="back-top" @click="backClick">
        <img src="~assets/img/common/top.png" alt="">
    </div>
</template>

<script>
export default {
    name:'BackTop',
    methods:{
        backClick(){
            // console.log('回到顶部');
        }
    }
}
</script>

<style scoped>
 .back-top{
     position: fixed;
     right: 8px;
     bottom: 55px;
     z-index: 999;
 }
  .back-top img{
      width: 43px;
      height: 43px;
  }
</style>


